package com.fengplus.demo.service;

import org.springframework.stereotype.Component;

@Component
public class HystrixFallbackService implements HystrixService {

    @Override
    public String infoOk() {
        return null;
    }

    @Override
    public String infoError() {
        return Thread.currentThread().getName() + "_ErrorHandler_Consumer";
    }

    @Override
    public String infoTimeout() {
        return Thread.currentThread().getName() + "_TimeoutHandler_Consumer";
    }

    @Override
    public String infoGlobal() {
        return Thread.currentThread().getName() + "_GlobalHandler_Consumer";
    }

    @Override
    public String infoFeign() {
        return Thread.currentThread().getName() + "_FeignHandler_Consumer";
    }

}
